import numpy as np


class Triangle:
    vertex_vector = np.zeros((3, 3))
    color = np.zeros((3, 3))
    tex_coords = np.zeros((3, 2))

    def __init__(self):
        pass

    def set_vertex(self, index: int, vertex):
        self.vertex_vector[index] = vertex.copy()

    def set_color(self, index, r, g, b):
        self.color[index] = np.array([r / 255, g / 255, b / 255])

    def a(self):
        return self.vertex_vector[0]

    def b(self):
        return self.vertex_vector[1]

    def c(self):
        return self.vertex_vector[2]
